package com.pethome.web.domain;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.pethome.common.annotation.Excel;
import com.pethome.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;

/**
 * 帖子管理对象 t_post
 * 
 * @author 胡继承
 * @date 2024-09-04
 */
@TableName("t_post")
public class Post extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    @TableId
    @Excel(name = "id")
    private Long postId;

    /** 顾客id */
    @Excel(name = "顾客id")
    private Long postCustomerId;

    /** 标题 */
    @Excel(name = "标题")
    private String postTitle;

    /** 照片 */
    @Excel(name = "照片")
    private String postImages;

    /** 内容 */
    @Excel(name = "内容")
    private String postContent;

    /** 浏览量 */
    @Excel(name = "浏览量")
    private Long postReadCount;

    /** 收藏量 */
    @Excel(name = "收藏量")
    private Long postLikeCount;

    /** 发布时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "发布时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date postCreateAt;

    public void setPostId(Long postId) 
    {
        this.postId = postId;
    }

    public Long getPostId() 
    {
        return postId;
    }
    public void setPostCustomerId(Long postCustomerId) 
    {
        this.postCustomerId = postCustomerId;
    }

    public Long getPostCustomerId() 
    {
        return postCustomerId;
    }
    public void setPostTitle(String postTitle) 
    {
        this.postTitle = postTitle;
    }

    public String getPostTitle() 
    {
        return postTitle;
    }
    public void setPostImages(String postImages) 
    {
        this.postImages = postImages;
    }

    public String getPostImages() 
    {
        return postImages;
    }
    public void setPostContent(String postContent) 
    {
        this.postContent = postContent;
    }

    public String getPostContent() 
    {
        return postContent;
    }
    public void setPostReadCount(Long postReadCount) 
    {
        this.postReadCount = postReadCount;
    }

    public Long getPostReadCount() 
    {
        return postReadCount;
    }
    public void setPostLikeCount(Long postLikeCount) 
    {
        this.postLikeCount = postLikeCount;
    }

    public Long getPostLikeCount() 
    {
        return postLikeCount;
    }
    public void setPostCreateAt(Date postCreateAt) 
    {
        this.postCreateAt = postCreateAt;
    }

    public Date getPostCreateAt() 
    {
        return postCreateAt;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("postId", getPostId())
            .append("postCustomerId", getPostCustomerId())
            .append("postTitle", getPostTitle())
            .append("postImages", getPostImages())
            .append("postContent", getPostContent())
            .append("postReadCount", getPostReadCount())
            .append("postLikeCount", getPostLikeCount())
            .append("postCreateAt", getPostCreateAt())
            .toString();
    }
}
